<?php
class IndexController extends Controller {

	public function indexAction() {
		session_start();
		if(($_SESSION['login'] != 'true')  && empty($_SESSION['userid'])){
			$_SESSION['userid'] = 1;
			$url = $this->create_url('home/tengxun');
			$this->show_message('用户没登录，即将转入测试账号',$url,1 );
		}else{
			if(empty($_SESSION['userid']))
				$_SESSION['userid'] = 1;
			$url = $this->create_url('home/tengxun');
			$this->show_message('欢迎回来',$url,1 );
		}
		$this->display();
	}

}